package com.isunland.managesystem.entity;

import com.isunland.managesystem.R;
import com.isunland.managesystem.utils.MyStringUtil;
import java.io.Serializable;

@SuppressWarnings({ "unused", "JavaDoc" }) public class ProcessContent implements Serializable {
  private String id;
  private String coopManNames;// 配合人

  public String getCoopManIds() {
    return coopManIds;
  }

  public void setCoopManIds(String coopManIds) {
    this.coopManIds = coopManIds;
  }

  private String coopManIds;// 配合人JobNos
  private String planExcDesc; //
  private String workTime; // 总工时
  private String planEsteTime; // 要求完成时间
  private String planStagecompleteTime; // 最新阶段完成时间
  private String planContentDesc; // 计划内容
  private String planKindName; // 计划类别
  private String taskManName;// 委派人
  private String taskManId;// 委派人jobno
  private String planStatus;// 计划状态
  private String planKindType; // 计划性质
  private String planKindTypeCode; // 计划性质Code,如Temp
  private String excManId;
  private String excManName;//执行人
  private String regStaffName;//登记人
  private String regStaffId;//登记人jobNo
  private String evaStatus;//评价或归档状态

  public ProcessContent(String id, String planEsteTime, String planContentDesc, String taskManName,
      String planKindType, String planKindName, String excManId, String excManName) {
    super();
    this.id = id;
    this.planEsteTime = planEsteTime;
    this.planContentDesc = planContentDesc;
    this.taskManName = taskManName;
    this.planKindType = planKindType;
    this.planKindName = planKindName;
    this.excManId = excManId;
    this.excManName = excManName;
  }

  public ProcessContent() {
  }

  public String getEvaStatus() {
    return evaStatus;
  }

  public void setEvaStatus(String evaStatus) {
    this.evaStatus = evaStatus;
  }

  public String getPlanKindTypeCode() {
    return planKindTypeCode;
  }

  public void setPlanKindTypeCode(String planKindTypeCode) {
    this.planKindTypeCode = planKindTypeCode;
  }

  public String getRegStaffName() {
    return regStaffName;
  }

  public void setRegStaffName(String regStaffName) {
    this.regStaffName = regStaffName;
  }

  public String getRegStaffId() {
    return regStaffId;
  }

  public void setRegStaffId(String regStaffId) {
    this.regStaffId = regStaffId;
  }

  public String getTaskManId() {
    return taskManId;
  }

  public void setTaskManId(String taskManId) {
    this.taskManId = taskManId;
  }

  public String getExcManId() {
    return this.excManId;
  }

  public void setExcManId(String excManId) {
    this.excManId = excManId;
  }

  public String getExcManName() {
    return this.excManName;
  }

  public void setExcManName(String excManName) {
    this.excManName = excManName;
  }

  public String getId() {
    return id;
  }

  /**
   * @param id
   */
  public void setId(String id) {
    this.id = id;
  }

  /**
   * @return coopManNames
   */
  public String getCoopManNames() {
    return coopManNames;
  }

  /**
   * @param coopManNames
   */
  public void setCoopManNames(String coopManNames) {
    this.coopManNames = coopManNames;
  }

  /**
   * @return planExcDesc
   */
  public String getPlanExcDesc() {
    return planExcDesc;
  }

  /**
   * @param planExcDesc
   */
  public void setPlanExcDesc(String planExcDesc) {
    this.planExcDesc = planExcDesc;
  }

  /**
   * @return workTime
   */
  public String getWorkTime() {
    return workTime;
  }

  /**
   * @param workTime
   */
  public void setWorkTime(String workTime) {
    this.workTime = workTime;
  }

  /**
   * @return planEsteTime
   */
  public String getPlanEsteTime() {
    return planEsteTime;
  }

  /**
   * @param planEsteTime
   */
  public void setPlanEsteTime(String planEsteTime) {
    this.planEsteTime = planEsteTime;
  }

  /**
   * @return planStagecompleteTime
   */
  public String getPlanStagecompleteTime() {
    return planStagecompleteTime;
  }

  /**
   * @param planStagecompleteTime
   */
  public void setPlanStagecompleteTime(String planStagecompleteTime) {
    this.planStagecompleteTime = planStagecompleteTime;
  }

  /**
   * @return planContentDesc
   */
  public String getPlanContentDesc() {
    return planContentDesc;
  }

  /**
   * @param planContentDesc
   */
  public void setPlanContentDesc(String planContentDesc) {
    this.planContentDesc = planContentDesc;
  }

  /**
   * @return planKindName
   */
  public String getPlanKindName() {
    return planKindName;
  }

  /**
   * @param planKindName
   */
  public void setPlanKindName(String planKindName) {
    this.planKindName = planKindName;
  }

  /**
   * @return taskManName
   */
  public String getTaskManName() {
    return taskManName;
  }

  /**
   * @param taskManName
   */
  public void setTaskManName(String taskManName) {
    this.taskManName = taskManName;
  }

  /**
   * @return planStatus
   */
  public String getPlanStatus() {
    return planStatus;
  }

  /**
   * @param planStatus
   */
  public void setPlanStatus(String planStatus) {
    this.planStatus = planStatus;
  }

  /**
   * @return planKindType
   */
  public String getPlanKindType() {
    return planKindType;
  }

  /**
   * @param planKindType
   */
  public void setPlanKindType(String planKindType) {
    this.planKindType = planKindType;
  }

  public String getPlanKindSummary() {
    if (MyStringUtil.isEmpty(planKindType)) return "无";
    return MyStringUtil.substring(planKindType, 0, 1);
    //if (MyStringUtil.equals(planKindTypeCode, "Temp")) return "日";
    //if (MyStringUtil.equals(planKindTypeCode, "Week")) return "周";
    //return "其他";
  }

  public int getPlanKindColor() {
    if (MyStringUtil.equals(planKindTypeCode, "Temp")) return R.color.yelloy_textColor;
    if (MyStringUtil.equals(planKindTypeCode, "Week")) return R.color.primary;
    return R.color.primary;
  }
}